class_name ParticleExplosionEffect
extends MagicBulletBase

@onready var particle_explosion_effect: GPUParticles2D = $ParticleExplosionEffect
@onready var animation_player: AnimationPlayer = $AnimationPlayer
@onready var explosion_audio: AudioStreamPlayer2D = $AudioStreamPlayer2D


func _ready() -> void:
	animation_player.play("explosion")
	explosion_audio.play()
	

func _physics_process(delta: float) -> void:
	if particle_explosion_effect.emitting:
		process_hit()
